const db = require('../db');

class Feedback {
  static async create(feedback) {
    const sql = 'INSERT INTO math_practice_feedback (content, email) VALUES (?, ?)';
    const [result] = await db.query(sql, [feedback.content, feedback.email]);
    return result;
  }
}

module.exports = Feedback; 